﻿// JavaScript Document

$(function(){

$(".p2_sortul li").click(function(){					   
	$(this).css({"color":"#fff","background":"#A5D610"})         
	   .siblings().css({"color":"#636363","background":"#FFFFFF"});
});

//$(".p2_sortul li").hover(function(){
//	//$(this).css({"cursor":"pointer"})
//});

$(".p2_sortul li").hover(
	function(){
		$(this).css({"cursor":"pointer"});
	},
	function(){
});

	var $div_li =$("div.p2_searchtilte ul li");
	$div_li.click(function(){
		$(this).css({"background":"#fff", "height":"31px", "line-height":"30px", "margin-top":"1px","color":"#5AAD21"})           
			   .siblings().css({"background":"url(images/p2_searchlibg.gif) repeat-x","height":"28px","line-height":"30px", "margin-top":"1px", "color":"#636363"}); 
		var index =  $div_li.index(this); 
		$("div.tab_box > div")   	 
				.eq(index).show()  
				.siblings().hide();
});
	

$(".p2_color01 img").hover(
	function(){
		$(this).css({"border":"solid #FF6502 1px","cursor":"pointer"});
	},
	function(){
		$(this).css({"border":"solid #DEDEDE 1px"});
});

})